package com.liumuxian.video.pojo;

import lombok.Data;
import org.hibernate.annotations.Proxy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
//资源表
@Data
@Entity
@Table(name = "tb_resource")
@Proxy(lazy = false)
public class Resource implements Serializable{
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "name" ,length = 100)
    private String name;
    @Column(name = "type" ,length = 1)
    private Integer type;//0是视频1是office
    @Column(name = "path" ,length = 100)
    private String path;//路径
    @Column(name = "state" ,length = 1)
    private Integer state;
    @Column(name = "creatdata")
    private Date creatdata;//创建时间
    @Column(name = "updatedate")
    private Date updatedate;//修改时间
}
